<?php
/**
 *
 * PHP versions 4 and 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       cake
 * @subpackage    cake.cake.libs.view.templates.layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <?php
        echo $this->Html->charset();
        //  echo $html->script('prototype');
        //  echo $html->script('scriptaculous.js');
        //  echo $html->script('modalbox');
        //  echo $this->includeScript();
        //   echo $javascript->link(array('prototype', 'scriptaculous.js?load=effects', 'modalbox'));
        // echo $javascript->link('scriptaculous.js?load=effects'); 
        // echo $javascript->link('modalbox');
        // echo $html->css('modalbox');
        ?>
        <title>
            <?php __('Techhead Solutions'); ?>
            <?php echo $title_for_layout; ?>
        </title>
        <?php
        echo $html->script('prototype');
        echo $html->script('scriptaculous.js?load=effects');
        echo $html->script('cakemodalbox');

        echo $html->script('modalbox');
        echo $html->css('modalbox');

        echo $html->script('cakemodalbox');
        echo $this->Html->meta('icon');

        echo $this->Html->css('cake.generic');

        echo $scripts_for_layout;
        ?>
        <?php echo $html->image('ths.jpg', array('alt' => 'Logo', 'width' => '40%', 'height' => '25%', 'align' => 'middle')); ?>
        <script type="text/javascript">   
        </script>
    </head>
    <body>
        <div class="header">

        </div>
        <div class="menu">
            <ul>
                <li><?php echo $this->Html->link(__('Dashboard', true), array('controller' => 'pages', 'action' => 'home')); ?></li>
                <li><?php echo $this->Html->link(__('Timesheets', true), array('controller' => 'timesheets', 'action' => 'index')); ?></li>
                <li><?php echo $this->Html->link(__('Clients', true), array('controller' => 'clients', 'action' => 'index')); ?></li>
                <li><?php echo $this->Html->link(__('Staff', true), array('controller' => 'users', 'action' => 'index')); ?></li>
                <li><?php echo $this->Html->link(__('Stock', true), array('controller' => 'stocks', 'action' => 'index')); ?></li>
            </ul>
        </div>
        <div id="content">

            <?php echo $this->Session->flash(); ?>
            <?php echo $this->Session->flash('auth'); ?>
            <div class="right"><?php if ($this->Session->read('Auth.User')): echo $html->link('Logout', array('controller' => 'users', 'action' => 'logout'));
            endif; ?> </div>
                <?php echo $content_for_layout; ?>
        </div>
        <div id="footer">
			Copyright &copy 2011, Kevin Muchai
        </div>
        <?php //echo $this->Js->writeBuffer();  ?>
    </body>
</html>

